{extend name="base" /}
{block name="css"}
{css href="__CSS__/pay.css" /}
{/block}
{block name="body"}
<!-- 主要内容 开始 -->
<div class="weui-tab__bd-item">
  <header class="weui-navBar weui-navBar-fixed">
    <a href="javascript:history.go(-1);" class="weui-navBar-item">
      <i class="icon iconfont icon-fanhui"></i>
    </a>
    <div class="weui-center">
      <span class="weui-center-title">零钱</span>
    </div>
    <a href="account_log.html" class="weui-navBar-item">
      账单
    </a>
  </header>
	<div class="weui-msg change-main">
    <div class="weui-ad">
      <img src="static/images/wx_change.png" alt="">
    </div>
    <div class="weui-msg__text-area">
      <p class="demos-title">我的零钱</p>
      <h2>¥{$info.money|default="0.00"}</h2>
    </div>
    <p class="demos-sub-title">零钱理财，让零钱安稳赚收益</p>
    <div class="button-sp-area">
      <a href="recharge.html" class="weui-btn weui-btn_primary">充值</a>
      <a href="withdraw.html" class="weui-btn weui-btn_default">提现</a>
    </div>
  </div>
</div>
<!-- 主要内容 结束 -->
{/block}
{block name="js"}
<script type="text/javascript">
  $(function () {
    //循环请求局部刷新
    var intervalv = setInterval(function(){
      $.post('get_money.html', function(result){
          $('.weui-msg__text-area h2').text('¥'+result.data.money);
      })
    }, 5000);
  });
</script>
{/block}